<%-- 
    Document   : deleteproduct
    Created on : Mar 10, 2012, 10:03:15 PM
    Author     : Alex
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Foobar Bookstore</title>
           <%
            response.setHeader("Pragma","no-cache");
            response.setHeader("Cache-Control","no-store");
            response.setHeader("Expires","0");
            response.setDateHeader("Expires",-1);
        %>
        
        
             <%
        if(session.getAttribute("manager")== null){
            response.sendRedirect("managerlogin5678.jsp");
            }

               else{
        %>
        
    </head>
    <body>
        
         <% out.print("Welcome " +session.getAttribute("manager")+ "");%>
         <% out.print("Welcome " +session.getAttribute("id")+ "");%>
        <h1>Manager Delete Product</h1>
        
        
        <form action="DeleteProductServlet">
                 Delete Product: </br>
                 <input id="textbox" type="text" name="title" /></br>
                   <input id="textbox" type="hidden" name="type" value="<%=session.getAttribute("usertype")%>"  /></br>
                 
                 
                 <input type="hidden" name="mangid" value="<%=session.getAttribute("id")%>">
                  <input id="button" size="40"type = "submit" value = "Delete Product!"/>
            </form>
        
        
    </body>
    <%
    }
    %>
</html>
